package com.wallet.app.feign;

import com.wallet.provider.model.Menu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("wallet-provider-sys")
public interface MenuFeignClient {

    @RequestMapping(value = "/getMenuById", method = RequestMethod.GET)
    public Menu getMenuById(@RequestParam("id") Long id);
}
